Previous Book Contents Book Index Next

Inside Macintosh: 3D Graphics Programming With QuickDraw 3D /
Chapter 20 - QuickDraw 3D Mathematical Utilities / QuickDraw 3D Mathematical Utilities Reference
QuickDraw 3D Mathematical Utilities / Calculating Distances Between Points


Q3Point2D_Distance

You can use the Q3Point2D_Distance function to determine the distance between two two-dimensional points.

float Q3Point2D_Distance (
const TQ3Point2D *p1, 
const TQ3Point2D *p2);
p1
A two-dimensional point.
p2
A two-dimensional point.
DESCRIPTION
The Q3Point2D_Distance function returns, as its function result, the absolute value of the distance between points p1 and p2.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996